{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script> 
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" /> 
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
	<div class="col-1">
		<h6 class="title">已设置课程</h6>
		<div class="content"> 
			<table width="100%" cellspacing="0"  class="table-list">
				<thead>
				<tr>
					<th>班 级</th>
					<th>课 程</th>
					<th>上课时间</th>
					<th>课程备注</th>
					<th>最后编辑时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $course_list $info}
				<tr>
					<td align="center">{$info['class_id']}</td>
					<td align="center">{$info['course_id']}</td>
					<td align="center">{date('Y-m-d H:i:s',$info['course_time'])}</td>
					<td align="center">{$info['course_note']}</td>
					<td align="center">{date('Y-m-d H:i:s',$info['add_time'])}</td>
					<td align="center">
					{if !$info['is_allow']}
						<span style="color:#CCC;">待审核</span>
					{else}
						<span style="color:#0C3;">审核通过</span>
					{/if}
					</td>
					<td align="center">
						{if !$info['is_allow']}
						<a href="index.php?m=courses&c=index&a=cedit&id={$info['main_id']}" title="编辑">编辑</a> | 
						<a href="index.php?m=courses&c=index&a=cdel&id={$info['main_id']}" title="删除">删除</a>
						{/if}
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
			<div id="pages">{$pages}</div>
			
		</div><!-- css class content end -->
		<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
	</div><!-- css class col-1 end -->
	
	
	<div class="col-1" style="margin-top:20px;">
		<h5 class="title">设置课程</h5>
		<div class="content">
		<form method="post" action="index.php?m=courses&c=index&a=clist" id="myform" name="myform">
		<table width="100%" cellspacing="0" class="table_form">
			<!--<tr>
				<th width="100">课程：</th> 
				<td>{form::select($this->courses, 0, 'name="csid"', '请选择...')}</td>
			</tr>
			<tr>
				<th width="100">班级：</th> 
				<td>{form::select($this->classes, 0, 'name="cid"', '请选择...')}</td>
			</tr>-->
			<tr>
				<th width="100">课时安排：</th>
				<td>{form::select($this->course_time, 0, 'name="ctid"', '请选择...')}</td>
			</tr>
			<tr>
				<th></th>
				<td><input name="dosubmit" type="submit" id="dosubmit" value="{L('submit')}" class="button"></td>
			</tr>
		</table>
		</form>
		</div>
		<span class="o1"></span><span class="o2"></span><span class="o3"></span><span class="o4"></span>
	</div>
	
</div><!-- css class col-auto end -->
</div><!-- css id memberArea end -->
<div class="clear"></div>
{template 'member', 'footer'}